const myUrl = require('./url');
import { httpReq, SelectFile } from './request';

// ## Banner 轮播图 Banner/
/**
 * 首页轮播图
 * @param params
 * @returns {Promise<unknown>}
 */
export function bannerList(params) {
    return httpReq({
        url: myUrl.baseUrl + 'Banner/BannerList',
        data: params,
        method: 'GET',
        load: 0
    })
}

// ## User 个人中心 User/

/**
 * 身份证照片上传/银行卡照片上传
 * @param params
 * @returns {Promise<unknown>}
 */
export function UploadIdentityPhoto(params) {
  return SelectFile({
    url: myUrl.baseUrl + 'User/UploadIdentityPhoto',
    data: params,
    count: 1,
    load:1,
  })
}
